package top.lingkang.finalgateway.utils;

import cn.hutool.core.lang.Snowflake;
import cn.hutool.core.util.IdUtil;

/**
 * @author lingkang
 * @create by 2024/7/3 16:19
 */
public class IdUtils {
    private static final Snowflake snowflake = IdUtil.getSnowflake(1, 1);

    public static String nextIdStr() {
        return snowflake.nextIdStr();
    }

    public static long nextId() {
        return snowflake.nextId();
    }
}
